<%
    if(session.getAttribute("KhachHang") != null)
        {
            response.sendRedirect("index.jsp");
        }
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib  uri="/struts-tags" prefix="s" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link type="text/css" rel="stylesheet" href="css/DangNhap.css" />
        <title>ĐĂNG NHẬP</title>
    </head>
    <body style="background-color: #4a4a4a;">
        <br>
        <br>
        <div id="dangnhapform">
        <table >
             <tr>
                 <td colspan="2">
                     <div id="title"><h1>Đăng nhập
                    </h1></div> 
                </td>
            </tr>
            <tr>
                <td>
                    <s:form action="DangNhap"  method = "POST">
                        <s:textfield name="tendangnhap" label="Tên đăng nhập" maxLength="50"/>
                        <s:textfield name="matkhau" label="Mật khẩu" maxLength="50"/>
                        <s:submit name="OK" value="Đăng nhập" method="execute" />
                    </s:form>
                </td>

            </tr>
            <tr>
                <td style="text-align: left;">
                    <br>
                    <font style="font-weight: bold;"><a href="index.jsp">Trang Chủ</a></font><span>  |  </span>
                    <a href="quenmatkhau.jsp"><span style="font-weight: bold;">Quên mật khẩu?</span></a><span>  |  </span>
                    <a href="dangky.jsp"><span style="font-weight: bold;">Chưa có tài khoản ?</span></a>
                </td>
            </tr>
            <tr>
                <td><font style="font-weight: bold;"><s:actionerror /></font></td>
            </tr>

        </table>
       
    </div>
    </body>
</html>
